#include "net/connect_status.hh"

namespace wb
{
namespace net
{
static const char* const connect_status_str[]{
    {"connected"},
    {"invalid_ip"},
    {"timeout"},
    {"error"},
};

std::string_view to_string(connect_status cs)
{
    return connect_status_str[static_cast<int>(cs)];
}
}  // namespace net
}  // namespace wb